package com.yx.modules.api.service.impl;

import com.yx.common.utils.Query;
import com.yx.modules.api.dao.TbRewardRecordDao;
import com.yx.modules.api.entity.TbRewardRecord;
import com.yx.modules.api.service.TbRewardRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("rewardRecordservice")
public class TbRewardRecordServiceImpl implements TbRewardRecordService {
	@Autowired
	private TbRewardRecordDao rewardRecordDao;
	
	@Override
	public TbRewardRecord queryObject(Integer id){
		return rewardRecordDao.queryObject(id);
	}
	
	@Override
	public List<TbRewardRecord> queryList(Map<String, Object> map){
		return rewardRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return rewardRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(TbRewardRecord rewardRecord){
		rewardRecordDao.save(rewardRecord);
	}
	
	@Override
	public void update(TbRewardRecord rewardRecord){
		rewardRecordDao.update(rewardRecord);
	}
	
	@Override
	public void delete(Integer id){
		rewardRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		rewardRecordDao.deleteBatch(ids);
	}

	@Override
	public Integer findTotalByUserid(Integer userId) {
		return rewardRecordDao.findTotalByUserid(userId);
	}

	@Override
	public List<TbRewardRecord> queryList1(Query query) {
		return rewardRecordDao.queryList1(query);
	}

	@Override
	public int queryTotal1(Query query) {
		return rewardRecordDao.queryTotal1(query);
	}

}
